<template>
  <el-row :gutter="20" class="label-span">
    <el-col :xs="24" :sm="col" v-for="(item,index) in field_list" :key="index">
      <label>{{item.fieldName}}：</label>
      <span v-if="item.fieldType == '8'">
        <el-image 
          style="height: 18px;width:18px;float:left;"
          :src="item.fieldValue" 
          :preview-src-list="[item.fieldValue]">
        </el-image>
      </span>
      <span v-else-if="item.fieldType == '9'">
        <el-link type="primary"  @click="$util.winOpen(item.fieldValue)">点击查看</el-link>
      </span>
      <span v-else>{{item.fieldValue}}</span>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props:{
    list: {
      type: Array,
    },
    col: {
      type: Number,
      default: () => 8,
    }
  },
  data(){
    return{

    }
  },
  computed:{
    field_list(){
      return this.list
    }
  },
  methods:{

  }
}
</script>

<style>

</style>